package cn.com.dycc.party_dues.pay_log.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.com.dycc.common.controller.BaseController;
import cn.com.dycc.party_dues.pay_log.param.Pb_Party_Dues_Pay_LogParam;
import cn.com.dycc.party_dues.pay_log.service.Pb_Party_Dues_Pay_LogNotFoundException;
import cn.com.dycc.party_dues.pay_log.service.Pb_Party_Dues_Pay_LogService;
import cn.com.dycc.util.JsonObjectResult;

/**
 * 党费已成功缴纳信息(日志)表控制层
 * @author gaofan
 *
 */
@Controller
@RequestMapping("/party_dues/pay_log")
public class Pb_Party_Dues_Pay_LogController extends BaseController{
	
	@Resource
	private Pb_Party_Dues_Pay_LogService pb_Party_Dues_Pay_LogService;
	
	/**
	 * 党费已成功缴纳信息(日志)表详情
	 * @param param
	 * @param session
	 * @param request
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/detail.do")
	@ResponseBody
	public JsonObjectResult findDetailByParam(Pb_Party_Dues_Pay_LogParam param,HttpSession session,HttpServletRequest request) throws Exception{
		if(param.getDues_id()==null||param.getDues_id().trim().isEmpty()){
			throw new Pb_Party_Dues_Pay_LogNotFoundException("请选择党费信息");
		}
		return pb_Party_Dues_Pay_LogService.findByParam(param, request);
		
	}

}
